public class ThreadNotify implements Runnable{
    private LockQC lockQC;
    public ThreadNotify() {

    }

    public ThreadNotify(LockQC lockQC) {
        this.lockQC = lockQC;
    }

    @Override
    public void run() {
        synchronized (lockQC){
            try {
                Thread.sleep(10000L);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("唤醒线程将会被执行");
            lockQC.notify();
            System.out.println("他被我唤醒了");
        }
    }
}
